package com.bjdd.jdy.ui;


import android.content.Context;

import com.baidu.location.BDLocation;
import com.bjdd.jdy.base.BaseModel;
import com.bjdd.jdy.base.BasePresenter;
import com.bjdd.jdy.base.BaseResult;
import com.bjdd.jdy.base.BaseView;
import com.bjdd.jdy.entity.User;

import rx.Observable;

/**
 * Created by yukai on 2016/11/13.
 */

public interface MainContract {
    interface Model extends BaseModel {
        Observable<BaseResult<User>> getUserInfo(String token,String userId);
        Observable<String> setAlias(Context context,String alias);
        Observable upLoadPosition(String token,String carrierId,double lng,double lat);
    }

    interface View extends BaseView {
        void initUser(User user);
        void finishActivity();
    }

    abstract class Presenter extends BasePresenter<Model,View> {
        abstract void upLoadPosition(BDLocation location);
    }
}
